CXX=g++
CXXFLAGS=--std=c++0x -lrt -O3

COMMON_OBJECTS=graph_generator.o

PROGRAM_OBJECTS=program.o

all: $(COMMON_OBJECTS) $(PROGRAM_OBJECTS) program
	
program: $(PROGRAM_OBJECTS) $(COMMON_OBJECTS)
	$(CXX) $(CXXFLAGS) $(PROGRAM_OBJECTS) $(COMMON_OBJECTS) -o program

%.o: %.c
	$(CXX) $(CXXFLAGS) $(input) -o $(output)
	
clean:
	rm *.o
